package com.example.test.rke;

public class Main {



    public static void main(String[] args) throws InterruptedException {
        test01();
    }

    /**
     * 远程开门
     **/
    private static void test01() throws InterruptedException {
        // sn
        long controller_sn = 225045769;
        // ip
        String controller_ip = "58.221.101.74";
        // data
        int doorNo = 1; // 门号码

        // 开启连接
        WgUDPUtil.open(controller_ip);

        if (WgUDPUtil.openDoor(controller_sn,doorNo))
            System.out.println("远程开门成功");
        else
            System.out.println("远程开门失败");

        // 关闭连接
        WgUDPUtil.close();

    }
}
